
//Company Details Scripts
function InitializePage_CompanyDetails()
{
	document.getElementById("createEnt").style.display = 'none';
	document.getElementById("companyname").style.display = 'none';
	
} 

//Ledger Details Scripts
function InitializePage_LedgerDetails()
{
	document.getElementById("createLed").style.display = 'none';
	document.getElementById("ledgername").style.display = 'none';
	
} 

function ledgeroption()
{
	var selectedradio;
	var y = document.getElementsByName("group1");
	for (var x = 0; x < y.length; x ++) 
	{
		if (y[x].checked) 
		{
			selectedradio = y[x].value;
		}
	}
	if(selectedradio == '2')
	{
		
		document.getElementById("createLed").style.display = 'block';	
		document.getElementById("ledgername").style.display = 'none';
		
	}
	if(selectedradio == '1')
	{
		document.getElementById("createLed").style.display = 'none';	
		document.getElementById("ledgername").style.display = 'block';
	
	}
		
}


function companyoption()
{
	var selectedradio;
	var y = document.getElementsByName("group1");
	for (var x = 0; x < y.length; x ++) 
	{
		if (y[x].checked) 
		{
			selectedradio = y[x].value;
		}
	}
	if(selectedradio == '2')
	{
		
		document.getElementById("createEnt").style.display = 'block';	
		document.getElementById("companyname").style.display = 'none';
		
	}
	if(selectedradio == '1')
	{
		document.getElementById("createEnt").style.display = 'none';	
		document.getElementById("companyname").style.display = 'block';
	
	}
		
}
